* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "微软雅黑", Arial, sans-serif;
}

a {
  text-decoration: none;
  color: #333;
}

ul {
  list-style: none;
}

/* 布局容器 */
.container {
  width: 1200px;
  margin: 0 auto;
}

/* 顶部导航栏样式 */
.top-bar {
  height: 36px;
  background-color: #f5f5f5;
  font-size: 12px;
  color: #999;
  line-height: 36px;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
}

.top-bar a {
  margin-left: 15px;
  color: #666;
}

/* 主导航样式 */
.header {
  height: 50px;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header .container {
  display: flex;
  align-items: center;
}

.logo {
  width: 160px;
  height: 44px;
  background-image: url("https://res.vmallres.com/pimages//common/logo.png");
  background-size: contain;
  background-repeat: no-repeat;
}

.main-nav {
  display: flex;
  margin-left: 40px;
}

.main-nav-item {
  font-size: 16px;
  margin: 0 15px;
  font-weight: bold;
  color: #333;
}

.main-nav-item:hover {
  color: #c00;
}

/* 搜索框区域 */
.search-bar {
  width: 900px;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.search-popup-container {
  display: flex;
  align-items: center;
}
.search-input-wrapper {
  display: flex;
  align-items: center;
  padding-bottom: 8px;
}

.search-input {
  width: 0; /* 默认宽度为0（隐藏） */
  padding: 0;
  border: none;
  outline: none;
  font-size: 16px;
  opacity: 0; /* 默认透明 */
  transition: width 1s ease, opacity 1s ease; /* 平滑过渡 */
  margin-right: 200px;
}

.search-input.expanded {
  width: 800px; /* 展开后宽度 */
  padding: 8px;
  opacity: 1; /* 完全可见 */
  border-bottom: 1px solid #ccc; /* 可选：底部边框 */
}


.search-history {
  margin-top: 16px;
}
.search-div{
  display: flex;
  align-items: center;
}
.search-history h4 {
  margin: 8px 0;
  color: #666;
  font-weight: normal;
}

.search-history ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-history li {
  padding: 8px;
  cursor: pointer;
  border-radius: 4px;
}

.search-history li:hover {
  background-color: #f5f5f5;
}

.search-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}
@font-face {
  font-family: "iconfont"; /* Project id 4869130 */
  src: url('//at.alicdn.com/t/c/font_4869130_05i5ngjen24b.woff2?t=1743675590408') format('woff2'),
       url('//at.alicdn.com/t/c/font_4869130_05i5ngjen24b.woff?t=1743675590408') format('woff'),
       url('//at.alicdn.com/t/c/font_4869130_05i5ngjen24b.ttf?t=1743675590408') format('truetype');
}
.slick-dots li{
 background-color: rgb(218, 217, 217);
 
}
.slick-dots li.slick-active::after{
  background-color: rgb(0, 0, 0);
}
.iconfont {
  font-family: "iconfont" !important;
 
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  
}

.icon-huishouzhan:before {
  content: "\e61a";
  margin-left: 20px;
  font-size: 18px;
}

.icon-sousuo:before {
  content: "\e86e";
  font-size: 22px;
  margin-right: 20px;
}

/* 轮播图区域 */
.banner {
  width: 100%;
  height: 400px;
  margin: 0 auto;
  position: relative;
  background-color: white;
  display: flex;
}

.main-banner {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* 分类入口 */
.category {
  width: 1000px;
  margin: 20px auto;
  display: flex;
  flex-wrap: wrap;
  /* border: 1px solid; */
  justify-content: space-around;
}

.category-item {
  width: 100px;
  height: 100px;
  margin: 10px 50px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* background-color: #f5f5f5; */
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
}

.category-item:hover {
  background-color: #e0e0e0;
}

/* 促销活动 */
.promotion-section {
  width: 1200px;
  margin: 0 auto 30px;
}

.section-title {
  font-size: 24px;
  font-weight: bold;
  height: 40px;
  line-height: 40px;
  color: #333;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 20px;
}

.product-list {
  display: flex;
  flex-wrap: wrap;
}

.product-item {
  width: 290px;
  margin: 0 13px 20px 0;
  background-color: #fff;
  transition: all 0.3s;
}

.product-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.product-item:nth-child(4n) {
  margin-right: 0;
}

/* 底部 */
.footer {
  background-color: #f5f5f5;
  padding: 30px 0;
}

.footer-container {
  width: 1200px;
  margin: 0 auto;
  display: flex;
}

.footer-column {
  flex: 1;
}

.footer-title {
  font-size: 16px;
  margin-bottom: 20px;
}

.footer-link {
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
  display: block;
}

.footer-link:hover {
  color: #c00;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .container,
  .search-bar,
  .banner,
  .category,
  .promotion-section,
  .footer-container {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }

  .main-nav {
    margin-left: 20px;
    flex-wrap: wrap;
  }

  .main-nav-item {
    margin: 0 10px 5px 0;
  }

  .category {
    justify-content: space-around;
  }

  .category-item {
    width: 100px;
    height: 100px;
    margin: 0 5px 10px;
  }

  .product-list {
    justify-content: space-around;
  }

  .product-item {
    width: 45%;
    margin: 0 0 15px;
  }

  .product-item:nth-child(2n) {
    margin-right: 0;
  }
}

@media (max-width: 768px) {
  .header {
    height: auto;
    padding: 10px 0;
  }

  .header .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    margin-left: 0;
    margin-top: 10px;
  }

  .banner {
    height: auto;
    flex-direction: column;
  }

  .main-banner {
    width: 100%;
    height: 200px;
  }

  .side-banner {
    width: 100%;
    flex-direction: row;
    height: auto;
  }

  .side-banner-item {
    width: 33.33%;
    height: 80px;
    margin: 5px;
  }

  .footer-container {
    flex-wrap: wrap;
  }

  .footer-column {
    flex: 0 0 50%;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .search-input {
    width: 200px;
  }

  .category-item {
    width: 80px;
    height: 80px;
    font-size: 14px;
  }

  .product-item {
    width: 100%;
    margin: 0 0 15px;
  }

  .footer-column {
    flex: 0 0 100%;
  }
}
